#include "FieldView.h"

FieldView::FieldView(QWidget *parent): QTreeView(parent)
{
    setHeaderHidden(true);
    setFont(QFont("Consolas", 11));
}

void FieldView::mousePressEvent(QMouseEvent *event) {
    QModelIndex index = indexAt(event->pos());
    if (index.isValid())
        emit nodePressed(index);
    QTreeView::mousePressEvent(event);
}
